package com.icart.entities;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "mk_saleinfo", schema = "amp", catalog = "")
public class MkSaleinfoEntity {
    private String oid;
    private Long chnid;
    private Long custid;
    private Long custcar;
    private String carno;
    private String cartype;
    private Timestamp createtime;
    private String remark;
    private Integer stat;
    private Long checkman;
    private Timestamp checktime;
    private String checkremark;
    private Long staffid;
    private Timestamp completetime;
    private Long servitem;
    private Integer fwcode;
    private String waternum;

    @Id
    @Column(name = "oid")
    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    @Basic
    @Column(name = "chnid")
    public Long getChnid() {
        return chnid;
    }

    public void setChnid(Long chnid) {
        this.chnid = chnid;
    }

    @Basic
    @Column(name = "custid")
    public Long getCustid() {
        return custid;
    }

    public void setCustid(Long custid) {
        this.custid = custid;
    }

    @Basic
    @Column(name = "custcar")
    public Long getCustcar() {
        return custcar;
    }

    public void setCustcar(Long custcar) {
        this.custcar = custcar;
    }

    @Basic
    @Column(name = "carno")
    public String getCarno() {
        return carno;
    }

    public void setCarno(String carno) {
        this.carno = carno;
    }

    @Basic
    @Column(name = "cartype")
    public String getCartype() {
        return cartype;
    }

    public void setCartype(String cartype) {
        this.cartype = cartype;
    }

    @Basic
    @Column(name = "createtime")
    public Timestamp getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Timestamp createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "remark")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Basic
    @Column(name = "stat")
    public Integer getStat() {
        return stat;
    }

    public void setStat(Integer stat) {
        this.stat = stat;
    }

    @Basic
    @Column(name = "checkman")
    public Long getCheckman() {
        return checkman;
    }

    public void setCheckman(Long checkman) {
        this.checkman = checkman;
    }

    @Basic
    @Column(name = "checktime")
    public Timestamp getChecktime() {
        return checktime;
    }

    public void setChecktime(Timestamp checktime) {
        this.checktime = checktime;
    }

    @Basic
    @Column(name = "checkremark")
    public String getCheckremark() {
        return checkremark;
    }

    public void setCheckremark(String checkremark) {
        this.checkremark = checkremark;
    }

    @Basic
    @Column(name = "staffid")
    public Long getStaffid() {
        return staffid;
    }

    public void setStaffid(Long staffid) {
        this.staffid = staffid;
    }

    @Basic
    @Column(name = "completetime")
    public Timestamp getCompletetime() {
        return completetime;
    }

    public void setCompletetime(Timestamp completetime) {
        this.completetime = completetime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MkSaleinfoEntity that = (MkSaleinfoEntity) o;

        if (oid != null ? !oid.equals(that.oid) : that.oid != null) return false;
        if (chnid != null ? !chnid.equals(that.chnid) : that.chnid != null) return false;
        if (custid != null ? !custid.equals(that.custid) : that.custid != null) return false;
        if (custcar != null ? !custcar.equals(that.custcar) : that.custcar != null) return false;
        if (carno != null ? !carno.equals(that.carno) : that.carno != null) return false;
        if (cartype != null ? !cartype.equals(that.cartype) : that.cartype != null) return false;
        if (createtime != null ? !createtime.equals(that.createtime) : that.createtime != null) return false;
        if (remark != null ? !remark.equals(that.remark) : that.remark != null) return false;
        if (stat != null ? !stat.equals(that.stat) : that.stat != null) return false;
        if (checkman != null ? !checkman.equals(that.checkman) : that.checkman != null) return false;
        if (checktime != null ? !checktime.equals(that.checktime) : that.checktime != null) return false;
        if (checkremark != null ? !checkremark.equals(that.checkremark) : that.checkremark != null) return false;
        if (staffid != null ? !staffid.equals(that.staffid) : that.staffid != null) return false;
        if (completetime != null ? !completetime.equals(that.completetime) : that.completetime != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = oid != null ? oid.hashCode() : 0;
        result = 31 * result + (chnid != null ? chnid.hashCode() : 0);
        result = 31 * result + (custid != null ? custid.hashCode() : 0);
        result = 31 * result + (custcar != null ? custcar.hashCode() : 0);
        result = 31 * result + (carno != null ? carno.hashCode() : 0);
        result = 31 * result + (cartype != null ? cartype.hashCode() : 0);
        result = 31 * result + (createtime != null ? createtime.hashCode() : 0);
        result = 31 * result + (remark != null ? remark.hashCode() : 0);
        result = 31 * result + (stat != null ? stat.hashCode() : 0);
        result = 31 * result + (checkman != null ? checkman.hashCode() : 0);
        result = 31 * result + (checktime != null ? checktime.hashCode() : 0);
        result = 31 * result + (checkremark != null ? checkremark.hashCode() : 0);
        result = 31 * result + (staffid != null ? staffid.hashCode() : 0);
        result = 31 * result + (completetime != null ? completetime.hashCode() : 0);
        return result;
    }

    @Basic
    @Column(name = "servitem")
    public Long getServitem() {
        return servitem;
    }

    public void setServitem(Long servitem) {
        this.servitem = servitem;
    }

    @Basic
    @Column(name = "fwcode")
    public Integer getFwcode() {
        return fwcode;
    }

    public void setFwcode(Integer fwcode) {
        this.fwcode = fwcode;
    }

    @Basic
    @Column(name = "waternum")
    public String getWaternum() {
        return waternum;
    }

    public void setWaternum(String waternum) {
        this.waternum = waternum;
    }
}
